package com.example.rlw.mvpplugintest.login;


import com.example.rlw.mvpplugintest.bean.UserBean;
import com.example.rlw.mvpplugintest.mvp.BaseObserver;
import com.example.rlw.mvpplugintest.mvp.CallBack;
import com.example.rlw.mvpplugintest.mvp.MyObservableTransformer;
import com.example.rlw.mvpplugintest.net.HttpResponseData;
import com.example.rlw.mvpplugintest.net.HttpService;
import com.example.rlw.mvpplugintest.net.NetWorks;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by rlw on 2018/10/11.
 */

public class LoginModel implements LoginContract.LoginModel {

    @Override
    public Observable<HttpResponseData<List<UserBean>>> login(String userName, String userPwd) {
        return NetWorks.configRetrofit(HttpService.class).login(userName, userPwd);
    }
}
